<%@ taglib prefix="c"   uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="editLock" value="${param.editLock}" scope="request" />

			<table   cellpadding="1" cellspacing="1">
				
				<tr>	
					<th>Data 
					<td	colspan="2">
						<input ${editLock} name="dataScrittura"  id="dataScrittura" value="<fmt:formatDate pattern="dd/MM/yyyy" value='${editPdoppia.dataScrittura}'/>" class="Date">
							
					 
					<td	colspan="3">
						<b>${param.causale}</b>
						<input type="hidden"  id="causale" name="causale" value="${param.codcausale}">
					<td align="right">
						<c:if test="${!empty editLock}"> 
							${editPdoppia.progressivoOperazione }/${editPdoppia.annoCompetenza}
						</c:if>
						&nbsp;
				<tr>	
					<td colspan="7" style="border-top:1px solid silver">&nbsp;	
					
				<tr>
					<th colspan="3">Avere
					<th>&nbsp;
					<th colspan="3">Dare	
				<tr >	
					
					<th class="dare">Cod. Avere
					<th class="dare">Soggetti o Titoli
					<th class="dare">Importo
					<th class="separator">&nbsp;
					<th class="avere">Cod. Dare
					<th class="avere">Soggetti o Titoli
					<th class="avere">Importo
					
				<c:forEach begin="0" end="7" varStatus="st">
					<tr>	
						<input type="hidden"  id="id_a${st.index}" name="id_a${st.index}" >
						<td><input  ${editLock} class="autocomplete code" size="13" id="a${st.index}" name="cod_a${st.index}" value="${editPdoppia.vociQuadroa[st.index].vocePianoDeiConti.codice}">
						<td><input class="description" size="30" id="desc_a${st.index}" name="desc_a${st.index}" ${editLock} value="${editPdoppia.vociQuadroa[st.index].descrizione}">
						<td><input  ${editLock} class="importo importo_a Float" size="11" id="importo_a${st.index}" name="importo_a${st.index}" value="<fmt:formatNumber pattern='0.00' value='${editPdoppia.vociQuadroa[st.index].importo}' />">
						<td class="separator">&nbsp;
						
						<input type="hidden"   id="id_d${st.index}" name="id_d${st.index}" >
						<td><input  ${editLock} class="autocomplete code" size="13" id="d${st.index}" name="cod_d${st.index}" value="${editPdoppia.vociQuadrod[st.index].vocePianoDeiConti.codice}">
						<td><input class="description" size="30" id="desc_d${st.index}" name="desc_d${st.index}" ${editLock} value="${editPdoppia.vociQuadrod[st.index].descrizione}">
						<td><input  ${editLock} class="importo importo_d Float" size="11" id="importo_d${st.index}" name="importo_d${st.index}" value="<fmt:formatNumber pattern='0.00' value='${editPdoppia.vociQuadrod[st.index].importo}' />">
						
				</c:forEach>
					
				<tr>	
				
						<td colspan="2" align="right">Totale di verifica
						<td><input size="11" name="tota" id="tota" readonly tabindex="-1">
						<td class="separator">&nbsp;
						
						<td colspan="2" align="right">Totale di verifica
						<td><input size="11" name="totd" id="totd" readonly tabindex="-1">
				
				<tr> <td colspan="7" align="right">	&nbsp;		
				<tr><th>Descrizione
					<td	colspan="6"><input style="width:100%" name="descrizione"  id="descrizione" value="${editPdoppia.descrizione}">	
							
				<tr>
					<td colspan="7" align="right" id="sbilancio">	&nbsp;			
				<tr>
					<td colspan="7" align="right">	&nbsp;
				<tr>	
					<td colspan="7" align="right">	
						<input class='button' type='submit' value='Salva' id='btnSave' /> 
						<input class='button' type='button' value='Chiudi' id='btnClose' onclick='document.location="<%=request.getContextPath()%>/app/start/index.jsp"'>
				
			</table>
			<script> 
				setDateInput();
				setNumbersInput();
				recalculate();
			</script>